<template>
  <p v-for="item in arrList" :key="item.id">{{ item.nickname }}</p>
</template>
<script lang="ts" setup>
import { getList } from "../api/index";
import { ref } from "vue";
let arrList = ref();
let listArr = async () => {
  let list = await getList({ id: 1, nickname: "lili" });
  arrList.value = list.data.data;
  console.log(list.data.data, "list页面");
};
listArr();
</script>
<style scoped>
p {
  color: #d69e9e;
}
</style>
